package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 系统通用配置业务对象 p_system_config
 *
 * @author ruoyi
 * @date 2022-08-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("系统通用配置业务对象")
public class PSystemConfigBo extends BaseEntity {

    /**
     *
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 配置名称
     */
    @ApiModelProperty(value = "配置名称", required = true)
    @NotBlank(message = "配置名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 类型 0 签到配置
     */
    @ApiModelProperty(value = "类型 0 签到配置", required = true)
    @NotBlank(message = "类型 0 签到配置不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 配置值
     */
    @ApiModelProperty(value = "配置值", required = true)
    private String value;

    /**
     * 第几天
     */
    @ApiModelProperty(value = "第几天", required = true)
    private Integer day;

    /**
     * 积分
     */
    @ApiModelProperty(value = "积分", required = true)
    private Integer integral;

    /**
     * 经验
     */
    @ApiModelProperty(value = "经验", required = true)
    private Integer experience;


}
